package com.mcf.xiaolinju.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.List;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author mcf
 * @since 2022-02-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Bigclassify implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 分类id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 分类的物品
     */
    private String name;

    private List<Classify> classifys;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<Classify> getClassifys() {
        return classifys;
    }

    public void setClassifys(List<Classify> classifys) {
        this.classifys = classifys;
    }

    @Override
    public String toString() {
        return "Bigclassify{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", classifys=" + classifys +
                '}';
    }
}
